<div class="title_section">
	 Ajout d'une nouvelle version
</div>
<div align="center" class="section">
<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<script type="text/javascript">
tinyMCE.init({
    mode : "exact",
	elements : 'articles_texte',
	realtive_urls:false,
    theme : "advanced",
       plugins : "jbimages,autolink,lists,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",

        // Theme options
        theme_advanced_buttons1 : "jbimages,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,hr,removeformat,|,sub,sup,|,charmap,emotions,iespell,advhr,|,ltr,rtl",
        theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,forecolor,backcolor,|,visualchars,|,insertimage,|,cite,abbr,acronym,|,fullscreen",
        theme_advanced_buttons3 : "tablecontrols",

        // Theme options
       
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,


});
</script>
<form action="<?php echo url_for("article/add") ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<input type="hidden" name="sf_method" value="put" />
<ul>
<?php $i=0;foreach ($form as $row): ?>
	<?php if(!$row->isHidden()):?>
        <li class="form_label">
            <?php echo $row->renderLabel() ?>
        </li>
        <li class="form_help">
            <?php echo $row->renderHelp() ?>
        </li>
        <li class="form_error">
            <?php echo $row->renderError() ?>
        </li>
    
        <li class="form_row">
            <?php echo $row->render() ?>
            <?php if ($i == 0): ?>
            	<div id="version_major"></div>
            <?php elseif($i == 1):?>
            	<div id="version_minor"></div>
			<?php endif;?>
        </li>
    <?php $i++;endif;?>
<?php endforeach; ?>
<?php echo $form->renderHiddenFields() ?>
    <li class="form_button">
        <input type="submit" value="Creer une version" />
    </li>
</ul>
</form>
</div>

<div id="version_minor"></div>
<div id="version_major"></div>
